﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Companies_Products : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void btnAddNewProduct_Click(object sender, EventArgs e)
    {
        Redirect("Add");
    }

    protected void btnDelProduct_Click(object sender, EventArgs e)
    {
        Redirect("Del");
    }
    protected void btnEditProduct_Click(object sender, EventArgs e)
    {
        Redirect("Edit");
    }

    protected void Redirect(string page)
    {
        string url;
        url = "~/Items/" + page + "ItemsCustomers.aspx?CompanyID=" + Request.QueryString["CompanyID"];
        Response.Redirect(url);
    }
    protected void ddlAllCustomers_SelectedIndexChanged(object sender, EventArgs e)
    {
        Response.Redirect("~/Companies/CustProducts.aspx?CompanyID=" + ddlAllCustomers.SelectedValue.ToString());
    }
}
